package com.example.demo.tool;

import cn.hutool.core.date.DateUtil;

import java.math.BigInteger;
import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeStamp2Date {
    public static String timeStampToDate(Long timeStamp){
        String sd = DateUtil.format(DateUtil.date(timeStamp), "yyyy-MM-dd HH:mm:ss");      // 时间戳转换成时间
        return sd;
    }

}
